﻿<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio - FREE Community Edition (http://www.liquid-technologies.com)-->
<xs:schema xmlns:mstns="http://tempuri.org/RegistryConfig.xsd" elementFormDefault="qualified" targetNamespace="http://tempuri.org/RegistryConfig.xsd" id="RegistryConfig" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="config" type="mstns:registryConfig" />
  
  <xs:simpleType name="scope">
    <xs:restriction base="xs:string">
      <xs:enumeration value="User"/>
      <xs:enumeration value="Computer"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="target">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Key"/>
      <xs:enumeration value="Value"/>
      <xs:enumeration value="All"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="action">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Create"/>
      <xs:enumeration value="Modify"/>
      <xs:enumeration value="Delete"/>
    </xs:restriction>
  </xs:simpleType>
  
  <xs:complexType name="registryConfig" mixed="false">
    <xs:all minOccurs="0" maxOccurs="1">
      <xs:element name="scope" type="mstns:scope" default="Computer" maxOccurs="1" minOccurs="1"/>
      <xs:element name="target" type="mstns:target" default="All" maxOccurs="1" minOccurs="1"/>
      <xs:element name="path" type="xs:string" maxOccurs="1" minOccurs="1" />
      <xs:element name="pattern" type="xs:string" maxOccurs="1" minOccurs="1" />
      <xs:element name="action" type="mstns:action" default="Create" maxOccurs="1" minOccurs="1"/>
      <xs:element name="valueType" type="xs:string" maxOccurs="1" minOccurs="0" nillable="true"/>
      <xs:element name="value" type="xs:string" maxOccurs="1" minOccurs="1" nillable="true"/>
    </xs:all>
  </xs:complexType>
</xs:schema>